package org.mobile.logic;

import java.util.ArrayList;

import org.mobile.beans.Order;
import org.mobile.beans.Phone;
import org.mobile.beans.User;

public class Test {
	public static void main(String args[]){
		User user= new User();
		user.setLogin("user");
		user.setPassword("jaja");
		user.setName("user1");
		user.setSurname("user1");
		user.setAddress("xxx");
		user.setType("User");
		user.setId(8);
		user.setUserOrders((ArrayList<Order>) OrderLogic.getInstance().getOrders(8));
		Phone phone= new Phone();
		phone.setModel("dupa");
		phone.setPrice(1);
		phone.setHardiness(1);
		phone.setCamera(1);
		phone.setHeight(1);
		phone.setWidth(1);
		phone.setDepth(1);
		phone.setWeight(1);
		phone.setColors(1);
		phone.setResolution("xxx");
		phone.setScreenSize(1);
		phone.setTalkTime2g(1);
		phone.setTalkTime3g(1);
		phone.setStandBy2g(1);
		phone.setStandBy3g(1);
		phone.setBuildInMem(1);
		phone.setRam(1);
		phone.setMaxCardSize(1);
		phone.setNrOfApp(1);
		phone.setProcClock(1);
		phone.setReleaseDate(1);
		phone.setPopularity(1);
		phone.setHsdpaitd(1);
		phone.setGorillaglass(1);
		phone.setDesign(1);
		phone.setAutofocus(1);
		//UserLogic.getInstance().addUser(user);
		//OrderLogic.getInstance().addOrder(9, 50, Order.STATUS_WAITING);
		//UserLogic.getInstance().removeUser(user);
		//PhoneLogic.getInstance().getAllPhones();
		OrderLogic.getInstance().changeStatus(Order.STATUS_IN_PROGRESS, 1);
	}
}
